package Chapter02.HomeWork;

import java.util.Scanner;

public class Test07 {
    public static void main(String[] args) {
        int sum=0,avg=0;
        System.out.println("请输入王菲的考试科目语文，数学，英语，三门课成绩：");
        Scanner input=new Scanner(System.in);
        int languages=input.nextInt();
        int shu=input.nextInt();
        int english=input.nextInt();
        sum=languages+shu+english;
        avg=sum/3;
        System.out.println("总和"+sum+"平均分"+avg);
    }
}
